//
//  MapResultViewController.h
//  myhuibao
//
//  Created by li jun on 13-5-9.
//  Copyright (c) 2013年 myhuibao. All rights reserved.
//

//#import <UIKit/UIKit.h>
//#import<MapKit/MapKit.h>
//#import "ASPin.h"
//@interface MapResultViewController : UIViewController<MKMapViewDelegate>
//- (IBAction)doBack:(id)sender;
//@property (retain, nonatomic) IBOutlet MKMapView *map;
//@property (assign) NSMutableArray * results;
//@end
#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>

#import "CalloutMapAnnotation.h"
#import "BasicMapAnnotation.h"

@protocol MapViewControllerDidSelectDelegate;
@interface MKMapView (ZoomLevel)

- (void)setCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate
                  zoomLevel:(NSUInteger)zoomLevel
                   animated:(BOOL)animated;

@end
@interface MapResultViewController : UIViewController<MKMapViewDelegate>
{
    MKMapView *_mapView;
    
    int merchantId;
    NSString *name;
    NSString *cuisine;
    NSString *address;
    float score;
    id<MapViewControllerDidSelectDelegate> __weak delegate;
}
@property (strong,nonatomic) NSMutableArray * results;

@property(nonatomic,strong)IBOutlet MKMapView *mapView;

@property(nonatomic,weak)id<MapViewControllerDidSelectDelegate> delegate;
- (IBAction)doBack:(id)sender;

- (void)resetAnnitations:(NSArray *)data;
@end

@protocol MapViewControllerDidSelectDelegate <NSObject>

@optional
- (void)customMKMapViewDidSelectedWithInfo:(id)info;

@end